package com.pet_service.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pet_service.entity.Role;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 邹全伸
* @description 针对表【role(角色表)】的数据库操作Mapper
* @createDate 2025-09-20 09:18:18
* @Entity com.pet_service.entity.Role
*/
public interface RoleMapper extends BaseMapper<Role> {
    //根据用户id查询角色
    List<Role> selectRoleByUserId(@Param("userId") Integer userId);

    int deleteByRoleIdList(@Param("ids") List<Integer> ids);
}




